namespace ne   {
     const CONSOLE_KEY = {
        50: "error",
        40: "error",
        30: "warn",
        20: "info",
        10: "debug",
        0: "log"

    }
    export class SysoutHandler extends BaseHandler {

        private _ofunc: Function;


        constructor(startime?: number, gettime?: Function) {
            super(startime, gettime);

            if (true) {//todo native 
                this._ofunc = this.web_out
            }
        }

        private web_out(nlv: ELOGLEVEL, sfmt: string, ...sout:any[]) {
            console[CONSOLE_KEY[nlv]](sfmt, ...sout[0].slice(0));
        }

        private native_out(nlv) {

        }

        public emit(nlv: ELOGLEVEL, sfmt: string, ...sout) {
            let sffmt = this.getString(nlv, sfmt);
            this._ofunc(nlv, sffmt, sout);
        }

    }
}